<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "App",
  components: {},
  methods: {
    windowChange() {
      let width = document.documentElement.clientWidth;
      this.$store.commit("change", width);
      // console.log(width);
    },
  },
  created() {
    this.windowChange();
    window.onresize = () => this.windowChange();
  },
};
</script>

<style>
#app {
  /* font-family: SourceHanSansCN-Light, SourceHanSansCN; */

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  background-color: #fff;
  overflow: hidden;
  min-width: 375px;
}
</style>
